package com.jiangwz.dubbo.consumer;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.github.jiangwz.demo.service.DemoService;

/**
 * @author jiangwz
 * @create 2019/2/28.
 */
public class Consumer {

    public static void main(String[] args){
        //测试常规服务
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("consumer.xml");
        context.start();
        System.err.println("consumer start");
        DemoService demoService = context.getBean(DemoService.class);
        System.out.println("-->" + demoService);
        System.err.println("consumer");
        System.out.println(demoService.getPermissions(1L));
    }
}
